import request from '@/utils/request'

// 查询业绩考核-个人填报列表
export function listKpiFilling(query) {
  return request({
    url: '/teacher/kpiFilling/list',
    method: 'get',
    params: query
  })
}

// 查询业绩考核-个人填报列表
export function selectListKpiFilling() {
  return request({
    url: '/teacher/kpiFilling/selectList',
    method: 'get'
  })
}

// 查询业绩考核-个人填报详细
export function getKpiFilling(id) {
  return request({
    url: '/teacher/kpiFilling/' + id,
    method: 'get'
  })
}

// 查询业绩考核-个人填报详细
export function getByFdyNameAndYearAndMonth(query) {
  return request({
    url: '/teacher/kpiFilling/getByFdyNameAndYearAndMonth',
    method: 'get',
    params: query
  })
}

// 新增业绩考核-个人填报
export function addKpiFilling(data) {
  return request({
    url: '/teacher/kpiFilling/add',
    method: 'post',
    data: data
  })
}

export function exportKpiFilling(data) {
  return request({
    url: '/teacher/kpiFilling/export',
    method: 'post',
    data: data
  })
}

// 修改业绩考核-个人填报
export function updateKpiFilling(data) {
  return request({
    url: '/teacher/kpiFilling/update',
    method: 'post',
    data: data
  })
}

// 批量修改业绩考核-个人填报
export function batchUpdateKpiFilling(data) {
  return request({
    url: '/teacher/kpiFilling/batchUpdate',
    method: 'post',
    data: data
  })
}

// 删除业绩考核-个人填报
export function delKpiFilling(id) {
  return request({
    url: '/teacher/kpiFilling/' + id,
    method: 'post'
  })
}
